cc.Class({
    extends: cc.Component,

    properties: {
        empty:{
            default:null,
            type:cc.Node,
        },
        label:{
            default:null,
            type:cc.Label,
        },
    },
    setText(textOrEvent, textOrNull){

        this.label.string = (textOrEvent instanceof cc.Event)?textOrNull:textOrEvent;
        this.empty.active = (this.label.string == '');        
    }
});
